FROM java:7-jdk

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime

RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

# Install modules
RUN apt-get update
RUN apt-get install -y \
        git \
	vim \
	maven \
             --no-install-recommends

WORKDIR /var/www/html

COPY . /var/www/html

RUN /var/www/html/build.sh

RUN chmod -R 777 /var/www/html

EXPOSE 8080 17502
CMD ["sh", '-c', 'ping 127.0.0.1']
